package com.jeesite.modules.stock.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.jeesite.modules.stock.dao.mapper.StockMonthMapper;
import com.jeesite.modules.stock.dto.StockQueryDTO;
import com.jeesite.modules.stock.entity.StockMonthEntity;

@Component
public class StockMonthDao {

	@Autowired
	StockMonthMapper stockMonthMapper;
	
	public List<StockMonthEntity> getKlineDataOfDay(String stockCode) {
		StockQueryDTO param = new StockQueryDTO();
		param.setLimit(252);
		param.setStockCode(stockCode);
		return stockMonthMapper.findList(param);
	}
}
